<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>规则信息表详情</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">

	    <form id="ff" method="post">
	    	<div class="esaas-info-title">规则信息表信息</div>
	    	<table class="esaas-info-view-table">
			<tr>
				<td width="15%" align="right">规则id：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="ruleId" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">规则名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="ruleName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">规则描述：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="ruleDesc" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">规则类型：</td>
				<td width="35%"><select class="easyui-combobox" disabled
						id="ruleType" name="ruleType"
						style="width: 100%; height: 25px;"
						data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:RULE_TYPE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">规则适用类型：</td>
				<td width="35%"><select class="easyui-combobox" disabled
						id="adapterType" name="adapterType"
						style="width: 100%; height: 25px;"
						data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:ADAPTER_TYPE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">创建用户：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="createUser" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">创建日期：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="createTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">最后修改时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="updateTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">最新变更用户：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="updateUser" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:15px">
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	    </div>
	</div>
	<table id="paramdg" class="easyui-datagrid" title="规则参数配置" style="height:auto"
		   rownumbers="true"
		   data-options="
			singleSelect: true
		">
		<thead>
		<tr>
			<th data-options="field:'paramId',resizable:true,width:250" >规则参数id</th>
			<th data-options="field:'paramDesc',resizable:true,width:250" >参数描述</th>
			<th data-options="field:'paramConf',resizable:true,width:250" >参数配置</th>
			<th data-options="field:'confDesc',resizable:true,width:250" >配置描述</th>
		</tr>
		</thead>
	</table>
	<script>	
		$(function() {
			var ruleId = $.getUrlParam('ruleId');
            $.restfulPostJson('../../api/s/rule/info/all', {ruleId:ruleId},function(data){
					$('#ff').form('load', {
						ruleId : data.rows.ruleId,
						ruleName : data.rows.ruleName,
						ruleDesc : data.rows.ruleDesc,
						ruleType : data.rows.ruleType,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime,
						updateTime : data.rows.updateTime,
                        adapterType : data.rows.adapterType,
						updateUser : data.rows.updateUser
					});
                	$('#paramdg').datagrid({data: data.rows.params})
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
